package com.lin.repository;

import com.lin.dataobject.Brand;
import com.lin.dto.ComboboxDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by MYQ on 2017/10/27.
 */
public interface BrandRepository extends JpaRepository<Brand,Integer>{
    List<Brand> findAll(Specification<Brand> specification);

    Page<Brand> findAll(Specification<Brand> specification, Pageable pageable);

    Long count(Specification<Brand> specification);

}
